<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link rel="stylesheet" href="chinese-style.css">
  <style>
    body {
      font-family: "FangSong", "仿宋", "SimSun", "宋体", serif;
      background: var(--rice-paper);
      height: 100vh;
      margin: 0;
      padding: 0;
      position: relative;
      overflow: hidden;
    }
    
    .mountain-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      opacity: 0.2;
    }
    
    .login-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      height: 100%;
      padding: 40px 30px 100px;
      box-sizing: border-box;
      position: relative;
      z-index: 1;
      overflow-y: auto;
    }
    
    .logo {
      width: 100px;
      height: 100px;
      border-radius: 20px;
      background: linear-gradient(145deg, var(--ink-black), var(--ink-gray));
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      position: relative;
      overflow: hidden;
    }
    
    .logo:before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40px;
      background-image: url("data:image/svg+xml,%3Csvg width='120' height='40' viewBox='0 0 120 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 L20 20 L35 30 L60 15 L85 25 L100 15 L120 30 L120 40 Z' fill='%232a5d43' opacity='0.3'/%3E%3C/svg%3E");
      background-size: cover;
    }
    
    .welcome-text {
      text-align: center;
      margin: 20px 0 10px;
    }
    
    .app-name {
      font-weight: bold;
      color: var(--ink-black);
      position: relative;
      display: inline-block;
      margin-bottom: 10px;
    }
    
    .app-name:after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--vermilion), transparent);
    }
    
    .desc {
      color: var(--ink-gray);
      font-size: 16px;
    }
    
    .ink-splash {
      position: absolute;
      width: 150px;
      height: 150px;
      background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 75 Q75 15, 120 75 Q75 135, 30 75 Z' fill='%233e3a39' opacity='0.05'/%3E%3C/svg%3E");
      background-size: contain;
      background-repeat: no-repeat;
      z-index: -1;
    }
    
    .splash-1 {
      top: 20%;
      right: 10%;
      transform: rotate(45deg);
    }
    
    .splash-2 {
      bottom: 30%;
      left: 5%;
      transform: rotate(-30deg);
    }
    
    .wechat-btn {
      width: 100%;
      background-color: var(--bamboo-green);
      color: white;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      position: relative;
      overflow: hidden;
      padding: 14px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(42, 93, 67, 0.3);
      transition: all 0.3s;
    }
    
    .wechat-btn:active {
      transform: translateY(2px);
      box-shadow: 0 2px 8px rgba(42, 93, 67, 0.2);
    }
    
    .wechat-btn:before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: all 0.5s;
    }
    
    .wechat-btn:hover:before {
      left: 100%;
    }
    
    .skip-btn {
      color: var(--ink-gray);
      font-size: 14px;
      padding: 8px 16px;
      border-radius: 8px;
      position: relative;
    }
    
    .skip-btn:after {
      content: '';
      position: absolute;
      bottom: 4px;
      left: 20%;
      width: 60%;
      height: 1px;
      background: var(--ink-gray);
      opacity: 0.3;
      transition: all 0.3s;
    }
    
    .skip-btn:hover:after {
      width: 80%;
      left: 10%;
    }
    
    .skip-btn:active {
      background-color: rgba(0, 0, 0, 0.05);
    }
    
    .disclaimer {
      font-size: 11px;
      color: var(--stone-gray);
      text-align: center;
      line-height: 1.4;
      margin-top: 16px;
    }
    
    .link {
      color: var(--indigo-blue);
      position: relative;
    }
    
    .link:after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 1px;
      background: var(--indigo-blue);
      opacity: 0.5;
    }
    
    .seal {
      position: absolute;
      bottom: 90px;
      right: 20px;
      width: 40px;
      height: 40px;
      background-color: var(--vermilion);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.2;
      transform: rotate(15deg);
    }
    
    .seal-text {
      color: white;
      font-size: 20px;
      font-weight: bold;
    }
    
    /* 从index.html移植的欢迎卡片样式 */
    .welcome-card {
      background-color: var(--rice-paper);
      border-radius: 16px;
      padding: 20px;
      margin: 10px 0 20px;
      width: 100%;
      position: relative;
      overflow: hidden;
      background-image: linear-gradient(to bottom right, rgba(42, 93, 67, 0.05), rgba(31, 74, 124, 0.05));
      border: 1px solid var(--ink-wash-1);
    }
    
    .welcome-card:before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 120px;
      height: 120px;
      background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q30 30, 60 60 Q90 90, 120 60' stroke='%232a5d43' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
      background-size: contain;
      opacity: 0.3;
    }
    
    .welcome-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--ink-black);
      margin-bottom: 6px;
    }
    
    .welcome-desc {
      font-size: 13px;
      color: var(--ink-gray);
      margin-bottom: 12px;
      line-height: 1.4;
    }
    
    .start-button {
      background-color: var(--mountain-green);
      color: white;
      padding: 10px 20px;
      border-radius: 12px;
      font-weight: 600;
      display: inline-block;
      box-shadow: 0 4px 12px rgba(42, 93, 67, 0.2);
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
      font-size: 14px;
    }
    
    .start-button:before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: all 0.5s;
    }
    
    .start-button:hover:before {
      left: 100%;
    }
    
    /* 底部导航栏样式 */
    .chinese-tab-bar {
      background-color: var(--rice-paper);
      border-top: 1px solid var(--ink-wash-1);
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 8px 0;
      z-index: 10;
    }
    
    .chinese-tab {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px 0;
      color: var(--ink-gray);
      transition: all 0.3s;
      text-decoration: none;
    }
    
    .chinese-tab.active {
      color: var(--mountain-green);
    }
    
    .chinese-tab-icon {
      width: 24px;
      height: 24px;
      margin-bottom: 4px;
    }
    
    .chinese-tab-label {
      font-size: 12px;
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .fade-in {
      animation: fadeIn 0.6s ease-out forwards;
    }
    
    .fade-in-delay-1 {
      animation-delay: 0.2s;
      opacity: 0;
    }
    
    .fade-in-delay-2 {
      animation-delay: 0.4s;
      opacity: 0;
    }
    
    .fade-in-delay-3 {
      animation-delay: 0.6s;
      opacity: 0;
    }
  </style>
</head>
<body>
  <!-- 背景装饰 -->
  <div class="mountain-bg">
    <img src="images/mountain-bg.svg" alt="山水背景" style="width:100%; height:100%; object-fit:cover;">
  </div>
  
  <div class="ink-splash splash-1"></div>
  <div class="ink-splash splash-2"></div>
  
  <div class="login-container">
    <div class="top-section flex flex-col items-center fade-in">
      <div class="logo">
        <img src="images/app-icon.svg" alt="启名" width="60" height="60">
      </div>
      
      <div class="welcome-text">
        <h1 class="text-2xl app-name">启名</h1>
        <p class="desc">国学智能起名小助手</p>
      </div>
    </div>
    
    <!-- 从index.html移植的欢迎卡片 -->
    <div class="welcome-card fade-in fade-in-delay-1">
      <h1 class="welcome-title">传承国风，为爱取名</h1>
      <p class="welcome-desc">基于中国传统文化精髓，融合生肖特点、传统国学和文化典故，为您的宝宝精心取名。</p>
      <button id="startNamingBtn" class="start-button">
        探索起名
        <i data-lucide="arrow-right" class="w-4 h-4 inline-block ml-1"></i>
      </button>
    </div>
    
    <div class="w-full fade-in fade-in-delay-2">
      <button id="wechatLoginBtn" class="wechat-btn">
        <i data-lucide="message-circle" class="w-5 h-5 mr-2"></i>
        微信一键登录
      </button>
      
      <div class="flex justify-center">
        <button id="skipLoginBtn" class="skip-btn">暂不登录，先去看看</button>
      </div>
      
      <p class="disclaimer fade-in fade-in-delay-3">
        登录即表示您同意启名的<span class="link">用户协议</span>和<span class="link">隐私政策</span>
      </p>
    </div>
  </div>
  
  <div class="seal">
    <span class="seal-text">启</span>
  </div>
  
  <!-- 底部导航栏 -->
  <div class="chinese-tab-bar">
    <a href="index.html" class="chinese-tab">
      <i data-lucide="home" class="chinese-tab-icon"></i>
      <span class="chinese-tab-label">首页</span>
    </a>
    <a href="qiming-free.html" class="chinese-tab">
      <i data-lucide="search-check" class="chinese-tab-icon"></i>
      <span class="chinese-tab-label">测名</span>
    </a>
    <a href="#" class="chinese-tab">
      <i data-lucide="user" class="chinese-tab-icon"></i>
      <span class="chinese-tab-label">我的</span>
    </a>
  </div>
  
  <script src="https://unpkg.com/lucide@latest"></script>
  <script>
    lucide.createIcons();
    
    // 添加基本交互功能
    document.addEventListener('DOMContentLoaded', function() {
      // 登录按钮
      const wechatLoginBtn = document.getElementById('wechatLoginBtn');
      wechatLoginBtn.addEventListener('click', function() {
        // 模拟微信登录
        alert('模拟微信登录流程...');
        setTimeout(() => {
          window.location.href = 'index.html';
        }, 1000);
      });
      
      // 跳过登录按钮
      const skipLoginBtn = document.getElementById('skipLoginBtn');
      skipLoginBtn.addEventListener('click', function() {
        window.location.href = 'index.html';
      });
      
      // 开始起名按钮
      const startNamingBtn = document.getElementById('startNamingBtn');
      startNamingBtn.addEventListener('click', function() {
        window.location.href = 'qiming-free.html';
      });
      
      // 为元素添加点击反馈效果
      const buttons = document.querySelectorAll('button, .chinese-tab');
      buttons.forEach(button => {
        button.addEventListener('click', function() {
          this.style.transform = 'scale(0.95)';
          setTimeout(() => {
            this.style.transform = 'scale(1)';
          }, 100);
        });
      });
    });
  </script>
</body>
</html> 